package com.mall.service.impl;

import com.mall.entity.OmsOrderSetting;
import com.mall.mapper.OmsOrderSettingMapper;
import com.mall.service.OmsOrderSettingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单设置表 服务实现类
 * </p>
 *
 * @author zzx
 * @since 2022-06-15
 */
@Service
public class OmsOrderSettingServiceImpl extends ServiceImpl<OmsOrderSettingMapper, OmsOrderSetting> implements OmsOrderSettingService {

    @Override
    public OmsOrderSetting getItem(Long id) {
        return getById(id);
    }

    @Override
    public int update(Long id, OmsOrderSetting orderSetting) {
        orderSetting.setId(id);
        return updateById(orderSetting) ? 1 : 0;
    }
}
